Skip to content

chore(members): drop the dead unsubscribed column - #3014

Merged
olleolleolle merged 2 commits into
codebar:masterfrom
mroderick:chore/drop-unsubscribed-column
Oct 13, 2026
Merged

olleolleolle merged 2 commits into
codebar:masterfrom
mroderick:chore/drop-unsubscribed-column

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Problem

Step 2 of #3007: drop the dead members.unsubscribed column. Stacked on #3013 (step 1, ignored_columns).

Change

safety_assured { remove_column :members, :unsubscribed, :boolean }, schema regenerated, and a spec pins that the column is gone from the database.

The diff shows both commits until #3013 merges, then narrows to the drop migration. Merge this only after #3013 has deployed to production: old releases name the column in their member SELECT list, and dropping it while they still serve would fail every member query during the Heroku preboot switch.

Review notes

Step 2 of codebar#3007. The members.unsubscribed boolean has been dead since 2014 and is now removed from the schema, with the absence pinned in the member spec. The column held 84 true values from 2013-2014 unsubscribe clicks; per codebar#3007 the drop changes no subscription state.

Merge only after the ignored_columns change has deployed: old releases name the column in their member SELECT list, built from the schema cache at boot, and dropping it while they still serve would fail every member query during the Heroku preboot switch.
@mroderick

Copy link
Copy Markdown
Collaborator Author

#3013 has been deployed as v790. Once preboot has switched traffic over in about 3-4 minutes, we can merge and deploy this PR.

@olleolleolle
olleolleolle merged commit a4b190a into codebar:master Oct 13, 2026
11 checks passed
@mroderick
mroderick deleted the chore/drop-unsubscribed-column branch October 13, 2026 07:31
@mroderick

Copy link
Copy Markdown
Collaborator Author

This has been deployed as v791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants